﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.ServiceModel;
using System.Text;

namespace VideoClub.IS.interfaces
{
    [ServiceContract]
    public interface IVideoclubAddHandler
    {
        [OperationContract]
        int addActor(string nombreactor, string apellidoactor, int nacionalidadactor, ref string log);
        [OperationContract]
        int addAlquiler(DateTime fechainicial, DateTime fechafinal, int estadoalquiler, ref string log);
        [OperationContract]
        int addCategoriaPelicula(string nombrecategoria, ref string log);
        [OperationContract]
        int addClasificacionPelicula(int idcategoriapeli, int idpelicula, ref string log);
        [OperationContract]
        int addDetalleAlquiler(int idalquiler, int idetallesolicitud, int estado, ref string log);
        [OperationContract]
        int addDetalleDevolucion(int idevolucion, int idetallealquiler, DateTime fecha, decimal multa, ref string log);
        [OperationContract]
        int addDetalleSolicitud(int idsolicitud, int idvideopelicula, int estadootorgado, ref string log);
        [OperationContract]
        int addDevolucion(DateTime fecha, ref string log);
        [OperationContract]
        int addNacionalidad(string nombre, ref string log);
        [OperationContract]
        int addParticipacionInPelicula(int idactor, int idpelicula, string personaje, ref string log);
        [OperationContract]
        int addPelicula(string nompelicula, DateTime estrenopeli, string sipnosis, string trailerlink, ref string log);
        [OperationContract]
        int addImgFile(int idpelicula, string filename, string filepath, string fileprefix, ref string log);
        [OperationContract]
        int addSolicitud(DateTime fechasolicitud, int idusuario, ref string log);
        [OperationContract]
        int addTipoUsuario(string nombretipousuario, ref string log);
        [OperationContract]
        int addUsuario(string correouser, string telfuser, string nombreuser, string clave, string apellidouser, int nacionuser, int tipouser, ref string log);
        [OperationContract]
        int addVideoPelicula(int idpelicula, decimal preciopel, int estadovideo, ref string log);
    }
}
